package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"zgyzk3/zgyzk3api/internal/config"
	"zgyzk3/zgyzk3rpc/zgyzk3rpcclient"
)

type ServiceContext struct {
	Config    config.Config
	ZgyZk3Rpc zgyzk3rpcclient.Zgyzk3rpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		ZgyZk3Rpc: zgyzk3rpcclient.NewZgyzk3rpc(zrpc.MustNewClient(c.ZgyZk3Rpc)),
	}
}
